package com.gaogzhen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gaogzhen.domain.SysPrivilege;

import java.util.Set;

public interface SysPrivilegeMapper extends BaseMapper<SysPrivilege> {
    /**
     * 查询角色拥有的权限id
     * @param roleId    角色id
     * @return
     */
    Set<Long> getPrivilegesByRoleId(Long roleId);
}
